//
// Created on 2024/4/30.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#include "DataSource.h"
int DataSource::id = 0;
DataSource::DataSource() : m_text("test_" + std::to_string(DataSource::id)) {
    m_imagePath = "http://127.0.0.1:8000/image-1.svg";
}
DataSource::~DataSource(){
    
}
void DataSource::setText(std::string text){
    m_text = text;
}
void DataSource::setImage(std::string imagePath){
    m_imagePath = imagePath;
}
std::string DataSource::getText(){
    return m_text;
}
std::string DataSource::getImage(){
    return m_imagePath;
}